package com.ruoyi.announcement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公告管理对象 notice
 * 
 * @author tza
 * @date 2023-03-07
 */
public class Notice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer noId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 是否撤销(1,撤销 0无) */
    @Excel(name = "是否截止")
    private String ifCancel;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelTime;

    /** 优先级 */
    @Excel(name = "优先级")
    private String priority;

    /** 是否逾期 */
    private String isOverdue ;

    public String getIsOverdue() {
        return isOverdue;
    }

    public void setIsOverdue(String isOverdue) {
        this.isOverdue = isOverdue;
    }

    /** 版本号 */
    private Integer version;

    public void setNoId(Integer noId) 
    {
        this.noId = noId;
    }

    public Integer getNoId() 
    {
        return noId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setIfCancel(String ifCancel) 
    {
        this.ifCancel = ifCancel;
    }

    public String getIfCancel() 
    {
        return ifCancel;
    }
    public void setCancelTime(Date cancelTime) 
    {
        this.cancelTime = cancelTime;
    }

    public Date getCancelTime() 
    {
        return cancelTime;
    }
    public void setPriority(String priority) 
    {
        this.priority = priority;
    }

    public String getPriority() 
    {
        return priority;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noId", getNoId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("publishTime", getPublishTime())
            .append("ifCancel", getIfCancel())
            .append("cancelTime", getCancelTime())
            .append("priority", getPriority())
            .append("version", getVersion())
            .toString();
    }
}
